#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int A[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
	int B[10] = { 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 };
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		int temp = 0;
		temp = B[i];
		B[i] = A[i];
		A[i] = temp;
	}
	for (i = 0; i < 10; i++)
	{
		printf("%d ", A[i]);
	}
	printf("\n");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", B[i]);
	}
	printf("\n");
	return 0;
}